package com.you.place.dal.dao.dataobject;

import java.util.ArrayList;

public class IndexDO {

    private Long   id;

    //
    private String topCollectPlaceId;

    //
    private String topRatePlaceId;

    private String topNoteId;

    public String getTopCollectPlaceId() {
        return topCollectPlaceId;
    }

    public void setTopCollectPlaceId(String topCollectPlaceId) {
        this.topCollectPlaceId = topCollectPlaceId;
    }

    public String getTopRatePlaceId() {
        return topRatePlaceId;
    }

    public void setTopRatePlaceId(String topRatePlaceId) {
        this.topRatePlaceId = topRatePlaceId;
    }

    public String getTopNoteId() {
        return topNoteId;
    }

    public void setTopNoteId(String topNoteId) {
        this.topNoteId = topNoteId;
    }

    
    
    public Long getId() {
        return id;
    }

    
    public void setId(Long id) {
        this.id = id;
    }

    public Long[] toLong(String str) {
        ArrayList<Long> list = new ArrayList<Long>();
        for (String s : str.split(",")) {
            list.add(Long.parseLong(s));
        }
        return list.toArray(new Long[0]);
    }

}
